package com.study.mybatis.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.session.RowBounds;

import com.study.mybatis.pojo.TbStudent;

public interface TbStudentMapper {
	
	public int insert(TbStudent student) ;
	
	public int update(TbStudent student) ;
	
	public int delete(Integer id) ;
	
	public TbStudent findById(Integer id) ;
	
	public List<TbStudent> findByName(String name) ;
	
	public List<TbStudent> findAll() ;
	
	public TbStudent findStudentWithAddressById(Integer id) ;
	
	public TbStudent findByGradeId(Integer gradeId) ;
	
	public List<TbStudent> searchStudentsByIf(Map<String, Object> map) ;
	
	public List<TbStudent> searchStudentsByChoose(Map<String, Object> map) ;
	
	public List<TbStudent> searchStudentsByIds(Map<String, Object> map) ;
	
	public List<TbStudent> findStudentsWithVisulaPage(RowBounds rowBounds) ;
	
	public List<TbStudent> findStudentsWithRealPage(Map<String, Object> map) ;
	
}
